package com.azusa.xbjy.service;

import com.azusa.xbjy.entity.User;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface UserService {

    User findByUsernameAndPassword(String username,String password);

    User findByEmail(String email);

    User findByUsername(String username);

    User save(User user);

    User findUserLookById(int id);

    PageInfo<User> findAllPage(int pageNum, int pageSize, String keyWords,int userId);

    void changeFocused(Integer id, Integer focusUserId, Boolean focus);

    void updateLook(int id);

    PageInfo<User> findMyUser(int pageNum, int pageSize,int id);

    List<User> findByDeptId(int deptId);

    User findByWxOpenid(String openid);

    void updateLoginTime(Integer id);
}
